 <script type="text/javascript">
 $(function () {
 	$('.content_text').slimScroll({
 		height:'530px',
 		railVisible: true,
 		color:'#646673',
 		size:'12px',
 		railOpacity: 1,
 		alwaysVisible: true

 	});
 	$('.ads_item').hover( function (){
 		$(this).children('.layout_hover').animate({top : 0},400);
 	},function (){
 		$(this).children('.layout_hover').animate({top : -240},400);
 	});
 });
 </script>
<div class="content">
	<h2>
		Quảng cáo
	</h2>

	<div class="content_text">
		<ul class="ads_list">
			<?php if(isset($dataProvider)) :?>
				<?php foreach($dataProvider as $value) : ?>
				<li class="ads_item">
					<img style="width:230px;height:240px;" src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/advertisement/<?php echo $value['image_url']; ?>" />
					<div class="layout_hover">
						<h3><?php echo $value['name']; ?></h3>
						<?php $text = substr($value['description'], 0,250) ?>
						<p><?php echo $text; ?></p>
						<a href="#">
							<img src="<?php echo Yii::app()->theme->baseUrl; ?>/front/images/eye.png" />Xem chi tiết
						</a>
					</div>
				</li>
				<?php endforeach; ?>
			<?php endif; ?>	
		</ul>
	</div>
</div>